#ifndef __PROTOCOL_H__
#define __PROTOCOL_H__
#include "sys.h"



typedef struct{
	u16 head;
	u16 alive_id;
	u16 hole_size;
	u16 message_type;
	u16 product_module;
	u16 product_id;
	u16 data_type;
	u16 data_size;
	u8 *data;
	u16 crc;
}_protocol_data;



u8 protocol_data_crc(u8 *p_data);
void protocol_data_collate(_protocol_data *p_data);
#endif
